package com.qf.j2112.utils;

import com.qf.j2112.po.Cart;
import com.qf.j2112.vo.ClientCartVo;

public class CartUtil {
    public static ClientCartVo cartVo(Cart cart){
        ClientCartVo clientCartVo = new ClientCartVo();
      clientCartVo.setGoodId(cart.getAreaId());
      clientCartVo.setGoodDescribe(cart.getDesc());
      clientCartVo.setGoodImg(cart.getCartImg());
      clientCartVo.setGoodcount(cart.getAreaCount());
      clientCartVo.setCartCount(cart.getNum());
      clientCartVo.setGoodName(cart.getAreaName());
      clientCartVo.setGoodPrice(cart.getAreaPrice());
      clientCartVo.setCartId(cart.getCartId());
        return clientCartVo;
    }
}
